<?php

class Application_Form_Login extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
        $username = $this->createElement('text',"username");
        $username->setLabel("Tài khoản")
                 ->addFilter('StripTags')
                 ->setRequired()
                 ->setAttrib("class","field size6")
                 ->setDecorators(array(
                    'ViewHelper',
                    array('Label'),
                    array('HtmlTag', array('tag' => 'p')),       
                 ));
        $this->addElement($username);
        
        $passowrd = $this->createElement("password","password");
        $passowrd->setLabel("Mật khẩu")
                 ->setAttrib("class","field size6")
                 ->setDecorators(array(
                    'ViewHelper',
                    array('Label'),
                    array('HtmlTag', array('tag' => 'p')),       
                 ));
        $this->addElement($passowrd);
        
        $btsubmit = $this->createElement("submit","btsubmit");
        $btsubmit->setLabel("Đăng nhập")
                 ->setAttrib("class","button")
                 ->setDecorators(array("ViewHelper"));
        $this->addElement($btsubmit);
        
       $this->setDecorators(array(
            array('ViewScript', array('viewScript' => 'form/_Login.phtml'))
        ));
    }


}

